﻿using Microsoft.Extensions.Configuration;

namespace 从数据库中读取配置文件
{
    internal class Program
    {
        static void Main(string[] args)
        {

            ConfigurationBuilder builder = new ConfigurationBuilder();
            builder.Add(new FxConfigSources("Server=.;database=classT;uid=sa;pwd=sa;Encrypt=True;TrustServerCertificate=True;", "T_configs"));
            IConfigurationRoot root = builder.Build();
            Console.WriteLine(root["name"]);

            Console.WriteLine("Hello, World!");
        }
    }
}
